package com.sky.service;

import com.sky.vo.SalesTop10ReportVO;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;


public interface ReportService {
    /**
     *根据时间区间统计营业额
     * @param begin
     * @param end
     * @return
     */
    Object getTurnover(LocalDate begin, LocalDate end);

    /**
     * 用户数据统计
     * @param begin
     * @param end
     * @return
     */
    Object getUserStatistics(LocalDate begin, LocalDate end);

    /**
     * 订单统计
     * @param begin
     * @param end
     * @return
     */
    Object getOrderStatistics(LocalDate begin, LocalDate end);

    /**
     * 销量统计
     * @param begin
     * @param end
     * @return
     */
    Object getSalesTop10(LocalDate begin, LocalDate end);

    /**
     * 导出运营数据报表
     * @param response
     */
    void exportBusinessData(HttpServletResponse response);

}
